﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhy.DigitaPlatform.DeviceAccess.Base
{
    /// <summary>
    /// 分组后的Modbus通讯变量
    /// </summary>
    public class CommAddress
    {
        /// <summary>
        /// 当前通讯地址ID
        /// </summary>
        public string VariableId { get; set; }
        /// <summary>
        /// 数据类型
        /// </summary>
        public Type ValueType { get; set; }
        /// <summary>
        /// 数据字节
        /// </summary>
        public byte[] ValueBytes { get; set; }
        /// <summary>
        /// 关联的数据变量地址
        /// </summary>
        public List<CommAddress> Variables { get; set; } = new List<CommAddress>();
    }
}
